#ifndef GETREQUESTPROCESS_H
#define GETREQUESTPROCESS_H

#include <QObject>
class QSqlQuery;

class GetRequestProcess : public QObject
{
    Q_OBJECT
public:
    explicit GetRequestProcess(QSqlQuery *parentQury,QObject *parent = 0);
    QByteArray analyzeGetDatagram(QByteArray& datagram);

signals:

public slots:

private:
    QByteArray getNodeMac(QList<QByteArray>& listUriItems);
    QByteArray getAliveNodeSensors(QByteArray& uri);
    QByteArray getAllNodeSensors(QByteArray& uri);
    QByteArray getRealTimeData(QList<QByteArray>& listUriItems);
    QByteArray getHistoryData(QList<QByteArray>& listUriItems);
    QByteArray getInfo(QList<QByteArray>& listUriItems);
    QByteArray getState(QList<QByteArray>& listUriItems);

    QSqlQuery *qury;

    QByteArray dataGramProcessing; //暂存正在处理的数据包


};

#endif // GETREQUESTPROCESS_H
